//
//  StatisticsMemberCell.m
//  YunDongAdmin
//
//  Created by lqq on 2018/9/19.
//  Copyright © 2018年 cloudfighting.com. All rights reserved.
//

#import "StatisticsMemberCell.h"
@interface StatisticsMemberCell ()
@property (weak, nonatomic) IBOutlet UIImageView *avaterImageView;
@property (weak, nonatomic) IBOutlet UILabel *coachNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *memberNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *gymLabel;

@end
@implementation StatisticsMemberCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _avaterImageView.layer.cornerRadius = 4;
    _avaterImageView.layer.masksToBounds = YES;
    [self.contentView addBottomLineViewWithLeftSpace:0 rightSpace:0];
}

- (void)setStatisticsMember:(M_StatisticsMember *)statisticsMember
{
    _statisticsMember = statisticsMember;
    [_avaterImageView setAvaterImageWithUrl:statisticsMember.avatarUrl];
    _coachNameLabel.text = statisticsMember.coachName;
    _gymLabel.text = statisticsMember.gymName;
    _memberNameLabel.text = [NSString stringWithFormat:@"会员：%@  剩余课时：%ld",statisticsMember.memberName,(long)statisticsMember.cardCount];
    _timeLabel.text = statisticsMember.timeStr;
}


@end
